package bean;

 public class Person {
     public Person()
     {}
     public String getName() {
         return name;
     }

     public void setName(String name) {
         this.name = name;
     }

     public String getSex() {
         return sex;
     }

     public void setSex(String sex) {
         this.sex = sex;
     }

     public int getAge() {
         return age;
     }

     public void setAge(int age) {
         this.age = age;
     }

     //------------------Person类封装的私有属性---------------------------------------
     // 姓名 String类型
     private String name;
     // 性别 String类型
     private String sex;
     // 年龄 int类型
     private int age;
 }

